/*     */ package com.cr.framework.web.domain.server;
/*     */ 
/*     */ import com.cr.common.utils.Arith;
/*     */ import com.cr.common.utils.MyDateUtils;
/*     */ import java.lang.management.ManagementFactory;
/*     */ 
/*     */ public class Jvm {
/*     */   private double total;
/*     */   
/*     */   private double max;
/*     */   
/*     */   private double free;
/*     */   
/*     */   private String version;
/*     */   
/*     */   private String home;
/*     */   
/*     */   public double getTotal() {
/*  41 */     return Arith.div(this.total, 1048576.0D, 2);
/*     */   }
/*     */   
/*     */   public void setTotal(double total) {
/*  46 */     this.total = total;
/*     */   }
/*     */   
/*     */   public double getMax() {
/*  51 */     return Arith.div(this.max, 1048576.0D, 2);
/*     */   }
/*     */   
/*     */   public void setMax(double max) {
/*  56 */     this.max = max;
/*     */   }
/*     */   
/*     */   public double getFree() {
/*  61 */     return Arith.div(this.free, 1048576.0D, 2);
/*     */   }
/*     */   
/*     */   public void setFree(double free) {
/*  66 */     this.free = free;
/*     */   }
/*     */   
/*     */   public double getUsed() {
/*  71 */     return Arith.div(this.total - this.free, 1048576.0D, 2);
/*     */   }
/*     */   
/*     */   public double getUsage() {
/*  76 */     return Arith.mul(Arith.div(this.total - this.free, this.total, 4), 100.0D);
/*     */   }
/*     */   
/*     */   public String getName() {
/*  84 */     return ManagementFactory.getRuntimeMXBean().getVmName();
/*     */   }
/*     */   
/*     */   public String getVersion() {
/*  89 */     return this.version;
/*     */   }
/*     */   
/*     */   public void setVersion(String version) {
/*  94 */     this.version = version;
/*     */   }
/*     */   
/*     */   public String getHome() {
/*  99 */     return this.home;
/*     */   }
/*     */   
/*     */   public void setHome(String home) {
/* 104 */     this.home = home;
/*     */   }
/*     */   
/*     */   public String getStartTime() {
/* 112 */     return MyDateUtils.parseDateToStr(MyDateUtils.YYYY_MM_DD_HH_MM_SS, MyDateUtils.getServerStartDate());
/*     */   }
/*     */   
/*     */   public String getRunTime() {
/* 120 */     return MyDateUtils.getDatePoor(MyDateUtils.getNowDate(), MyDateUtils.getServerStartDate());
/*     */   }
/*     */ }


/* Location:              D:\tmp\creditorRights-admin\BOOT-INF\lib\creditorRights-framework-4.7.0.jar!\com\cr\framework\web\domain\server\Jvm.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */